MSBuild /p:Configuration=Release %cd%\UpdateVersion\UpdateVersion.csproj

"%cd%\UpdateVersion\bin\Release\net8.0\UpdateVersion.exe" "%cd%\CustomBA\Properties\AssemblyInfo.cs"
"%cd%\UpdateVersion\bin\Release\net8.0\UpdateVersion.exe" "%cd%\IntoTheVoid\Properties\AssemblyInfo.cs"

set /P PRODUCTVERSION=<version
MSBuild /p:Configuration=Release /p:Version=%PRODUCTVERSION% %cd%\IntoTheVoid\IntoTheVoid.csproj-t:rebuild
MSBuild /p:Configuration=Release /p:Version=%PRODUCTVERSION% %cd%//LauncherUpdate//LauncherUpdate.csproj-t:rebuild

MSBuild /p:Configuration=Release /p:Version=%PRODUCTVERSION% %cd%\IntoTheVoid.exe\IntoTheVoid.exe.wixproj -t:rebuild


insignia -ib %cd%\IntoTheVoid.exe\bin\Release\IntoTheVoidSetup_%PRODUCTVERSION%.exe -o %cd%\IntoTheVoid.exe\bin\Release\engine.exe

signtool sign /v /fd sha256 /sha1 033e81965cda4ef21c72a351d220c780084ebf66 /tr http://rfc3161timestamp.globalsign.com/advanced /td sha256  %cd%\IntoTheVoid.exe\bin\Release\engine.exe

insignia -ab %cd%\IntoTheVoid.exe\bin\Release\engine.exe %cd%\IntoTheVoid.exe\bin\Release\IntoTheVoidSetup_%PRODUCTVERSION%.exe -o %cd%\IntoTheVoid.exe\bin\Release\IntoTheVoidSetup_%PRODUCTVERSION%.exe
del %cd%\IntoTheVoid.exe\bin\Release\engine.exe

signtool sign /v /fd sha256 /sha1 033e81965cda4ef21c72a351d220c780084ebf66 /tr http://rfc3161timestamp.globalsign.com/advanced /td sha256  %cd%\IntoTheVoid.exe\bin\Release\IntoTheVoidSetup_%PRODUCTVERSION%.exe
